﻿//-----------------------------------------------------------------------
// <copyright file="NpcService.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System.Collections.Generic;
using GateShift.Services.SDK.Services;
using GateShift.Services.SDK.Services.HostIntegration;
#endregion

namespace GateShift.Services.NpcSystem
{
    /// <summary>
    /// Implementation of the NPC service system
    /// </summary>
    [LoadableService(typeof(NpcService))]
    public class NpcService : ServiceBase, INpcService, ICommandLineInterfaceHandler
    {
        /// <summary>
        /// Method to initilaize the service. 
        /// </summary>
        public override void Initialize()
        {
            ServerHost.ServiceHost.RegisterServiceCommandHandler("npc", this);
            base.Initialize();
        }

        /// <summary>
        /// Entry method to process a set of commands for the root command
        /// </summary>
        /// <param name="arguments">List of string with all the arguments for this command</param>
        /// <returns>Boolean whether or not the command could be processed</returns>
        public bool HandleCommand(List<string> arguments)
        {
            return true;
        }
    }
}
